package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 物料流转物料详情表
 * </p>
 *
 * @author LX
 * @since 2018-09-08
 */
@TableName("erp_materiel_flow_materiel_details")
public class ErpMaterielFlowMaterielDetails extends Model<ErpMaterielFlowMaterielDetails> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 物料流转物料id
     */
    private Integer pid;
    /**
     * 物料ID
     */
    @TableField("materiel_id")
    private Integer materielId;
    /**
     * 物料状态0出库1入库
     */
    @TableField("materiel_study")
    private Integer materielStudy;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getMaterielId() {
        return materielId;
    }

    public void setMaterielId(Integer materielId) {
        this.materielId = materielId;
    }

    public Integer getMaterielStudy() {
        return materielStudy;
    }

    public void setMaterielStudy(Integer materielStudy) {
        this.materielStudy = materielStudy;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpMaterielFlowMaterielDetails{" +
        ", id=" + id +
        ", pid=" + pid +
        ", materielId=" + materielId +
        ", materielStudy=" + materielStudy +
        "}";
    }
}
